#ifndef __key_H__
#define __key_H__

#define SINGLE_KEY_TIME 3     //单击时长，软件消抖，30ms
#define KEY_INTERVAL    30    //双击时间阈值，300ms
#define LONG_KEY_TIME   50   //长按时长，500ms

unsigned char anjian();//获取按键按下状态
unsigned char keylook();//非阻塞获取键码


#endif
